package indi.kider.server.woniubus.service;


import indi.kider.common.model.bill.RentBill;
import indi.kider.common.model.employee.TenantQuery;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.ResponseEntity;

import java.io.IOException;

/**
 * 公寓初始化业务实现
 */
public interface ExcelService {

    /**
     * 导出excel租客信息
     * @param tenantQuery
     * @return
     * @throws IOException
     */
    ResponseEntity<InputStreamResource> exportTenant(TenantQuery tenantQuery) throws IOException;

    /**
     * 根据房间出账单
     * @param rentBill
     * @return
     * @throws IOException
     */
    ResponseEntity<InputStreamResource> exportBillByHouse(RentBill rentBill) throws IOException;

    /**
     * 根据租客出账单
     * @param rentBill
     * @return
     * @throws IOException
     */
    ResponseEntity<InputStreamResource> exportBillByTenant(RentBill rentBill) throws IOException;
}
